//引入immutable
import { fromJS } from "immutable";
import setData from "./type";

const initialState = fromJS({
    uid:0,
    token:"",
    url:"/"
})

const reducer = (state=initialState,{type,data})=>{
    try{
        return setData[type](state,data)
    }catch(error){
        return state
    }
}
export default reducer

